﻿@model iDMS.Models.DesignChangeStepViewModel
@{
    ViewBag.Title = Model.DesignChange.Identifier + " - " + Model.WorkflowStep.Name;
}

<h3>Design Change: @Model.DesignChange.Identifier - <span class="accent">@Model.WorkflowStep.Name</span></h3>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script>
<div style="margin-top: 20px; margin-bottom: 20px">@Model.WorkflowStep.Question</div>
<fieldset>
    <legend>Design Change</legend>
    @Html.Partial("_DesignChangeSmallDetails", Model.DesignChange)
</fieldset>
<div id="result">
<fieldset>
    <legend>Design Change</legend>
    @using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "result" }))
    {
        @Html.ValidationSummary();
        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <input type="submit" value="Yes" />

    }

</fieldset>

    </div>

@Html.ActionLink("Back to List", "Details", new { id = Model.DesignChange.DesignChangeID }, new { @class = "btl" })
